<template>
  <div class="picture fill flex-col">
    <div class="head"></div>
    <div class="picArea flex-1">
      <img class="img" v-if="picList.length" :src="picList[active]" alt="">
    </div>
  </div>
</template>

<script>
export default {
  name: "Picture",
  data: () => ({
    active: 0
  }),
  computed: {
    picList() {
      return this.$store.state.picList || []
    }
  }
}
</script>

<style scoped lang="scss">
  .picture{
    background-color: rgba(255,255,255, 0.9);
  }
  .picArea{
    overflow: hidden;
    padding: 20px;
    text-align: center;
    .img{
      width: auto;
      height: auto;
      max-width: 100%;
      max-height: 100%;
    }
  }
</style>
